package com.learn.dubbo.services.impl;

import com.learn.dubbo.pojo.User;
import com.learn.dubbo.services.UserService;

/**
 * @author wangxing
 * @version 2020/6/8 11:09 Administrator
 */
public class UserServiceImpl implements UserService {
    private User user;

    @Override
    public User getUser(Integer id) {
        User user = new User();
        user.setId(id);
        user.setName("wangxing");
        user.setSex("man");
        this.user = user;
        return user;
    }

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "user=" + user +
                '}';
    }
}
